package cn.yh.shop.admin.model;

/**
 * @Description:admin与角色关系类
 * @author:"许荣斐"
 * @time:2016年12月14日 下午6:52:55
 */
public class AdminRole implements java.io.Serializable {

	/**
	 * @Description: id : 关系表id
	 */
	private int id;
	/**
	 * @Description: roleId : 角色id
	 */
	private int roleId;
	/**
	 * @Description: adminId : 管理员id
	 */
	private int adminId;
	
	/**
	 * @Description:无参构造方法
	 */
	public AdminRole() {
		super();
	}

	/**
	 * @Description:有参构造方法
	 */
	public AdminRole(int id, int roleId, int adminId) {
		super();
		this.id = id;
		this.roleId = roleId;
		this.adminId = adminId;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the roleId
	 */
	public int getRoleId() {
		return roleId;
	}

	/**
	 * @param roleId the roleId to set
	 */
	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	/**
	 * @return the adminId
	 */
	public int getAdminId() {
		return adminId;
	}

	/**
	 * @param adminId the adminId to set
	 */
	public void setAdminId(int adminId) {
		this.adminId = adminId;
	}
	
	
	@Override
	public String toString() {
		return "admin与角色关系:";
	}
	

}